public class FizzBuzzGame {
    String FIZZ = "Fizz";
    String BUZZ = "Buzz";

    public String fizzOrBuzz(int num) {
        if(num % 3 == 0 && num % 5 == 0){
            return FIZZ + BUZZ;
        }
        if(num % 3 == 0){
            return FIZZ;
        }
        if(num % 5 == 0){
            return BUZZ;
        }

        return Integer.toString(num);
    }

    public void fizzBuzz() {
        for(int i = 1; i <= 100; i ++){
            System.out.println(fizzOrBuzz(i));
        }
    }
}
